﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using TjZheng.Base;
using TjZheng.Logging;

namespace TjZheng.News.Web
{
    public class TjZhengFramework
    {
        public static void Register()
        {
            //注册Sql日志
            ContextContainer.RegisterWriteSqlLog((sender, e) =>
            {
                LogHelper.WriteSqlLog(e.DbHelper.ConnectionStringKey, e.SqlString, e.DbParameters);
            });
        }
    }
}